#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

void test1()
{
	HP hp;
	HeadInit(&hp);

	int arr[10] = { 5,2,4,1,3,9,6,7,8,10 };
	int i = 0;
	for (i = 0; i < sizeof(arr) / sizeof(arr[0]);i++)
	{
		HeapPush(&hp, arr[i]);
	}

	//HeapPop(&hp);

	int k = 5;
	while (k--)
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}

	//HeapPrintf(&hp);

	

	HeapDestory(&hp);
}


int main()
{
	test1();
	return 0;
}